<template>
  <div class="common-layout">
    <el-container>
      <el-header>XX用户管理系统</el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu
              default-active="2"
              class="el-menu-vertical-demo"
              @open="handleOpen"
              @close="handleClose"
              router
          >
            <el-menu-item index="/index">
              <el-icon>
                <House />
              </el-icon>
              <span>主页</span>
            </el-menu-item>
            <el-sub-menu index="2">
              <template #title>
                <el-icon>
                  <location/>
                </el-icon>
                <span>用户管理</span>
              </template>
              <el-menu-item index="/userList">用户信息</el-menu-item>
              <el-menu-item index="/userAdd">用户添加</el-menu-item>
<!--              <el-menu-item index="/upload">上传头像</el-menu-item>-->
            </el-sub-menu>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "App",
  data(){
    return{

    }
  },
  methods:{
    handleOpen(){

    },
    handleClose(){

    }
  }
}

</script>

<style scoped>
.el-header {
  background-color: aquamarine;
  text-align: center;
}
</style>
